<%--
  Created by IntelliJ IDEA.
  User: 神🍭仙💤
  Date: 2019/6/20
  Time: 15:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="/common/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="/common/bootstrap/css/bootstrap.css" media="all">
    <link rel="stylesheet" type="text/css" href="/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="/css/personal.css" media="all">
    <title>单位信息修改</title>
    <link rel="stylesheet" href="common/layui/css/layui.css" media="all">
</head>
<style>
    th {
        width: 1px;
        white-space: nowrap;
        word-break: keep-all;
    }

    /*td {
        width: 1px;
        white-space: nowrap;
        word-break:  keep-all;
    }*/
</style>
<script src="${pageContext.request.contextPath}/js/jquery2.js"></script>
<script>
    $(function () {
        $.ajax({
            type: "POST",
            url: "XiaoJianCompanyinfoController/selectCompanyinfo",
            data: $("#formdata").serialize(),
            dataType: "json",
            success: function (msg) {
                $.each(msg, function (index, data) {
                    $("#tab").append("<tr><td>" + data.cname + "</td><td>" + data.clowyer + "</td><td>" + data.cleader + "</td><td>" + data.ctype + "</td><td>" + data.jitype + "</td><td>" + data.caddress + "</td><td>" + data.cbian + "</td><td>" + data.curl + "</td><td>" + data.cemail + "</td><td>" + data.ctel + "</td><td>" + data.cfax + "</td><td>" + data.createtime + "</td><td>" + data.cinfo + "</td><td><a href='XiaoJianCompanyinfoController/updateCompanyinfo?id=" + data.id + "' class='layui-btn layui-btn-lg' >修改</a><td><a href='XiaoJianCompanyinfoController/deleteCompanyinfo?id=" + data.id + "' class='layui-btn layui-btn-lg' >删除</a></td></td>")
                })
            },
            error: function () {
                alert("删除成功！")
                /*$("#spantxt").text("该单位名称已存在！")*/
            }
        });
    })
</script>
<body>
<section class="layui-larry-box">
    <div class="larry-personal">
        <header class="larry-personal-tit">
            <span>单位信息修改</span>
        </header><!-- /header -->

        <form class="layui-form">
            <table class="layui-table" id="tab">
                <thead>
                <th>
                    <div>单位名称</div>
                </th>
                <th>法人代言</th>
                <th>单位负责人</th>
                <th>所属行业</th>
                <th>经济类型</th>
                <th>单位地址</th>
                <th>邮政编码</th>
                <th>单位网址</th>
                <th>电子邮箱</th>
                <th>单位电话</th>
                <th>单位传真</th>
                <th>单位成立时间</th>
                <th>单位介绍</th>
                <th>修改</th>
                <th>删除</th>
                </thead>
                <tbody>

                </tbody>
            </table>
        </form>
        <script type="text/javascript" src="common/layui/layui.js"></script>
        <script type="text/javascript" src="js/newslist.js"></script>
    </div>


</section>
</body>

</html>